<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ListExample1.mxml</title>
<link rel="stylesheet" type="text/css" href="../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Application</span><span class="MXMLDefault_Text"> xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; 
    xmlns:flux=&quot;</span><span class="MXMLString">http://www.openflux.org/2008</span><span class="MXMLDefault_Text">&quot; 
    layout=&quot;</span><span class="MXMLString">absolute</span><span class="MXMLDefault_Text">&quot;  viewSourceURL=&quot;</span><span class="MXMLString">srcview/index.html</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
    
    <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> layouts </span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;flux:VerticalLayout</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">vertical</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;flux:HorizontalLayout</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">horizontal</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;flux:FlowLayout</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">flow</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;flux:CircleLayout</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">circle</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    
    <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> data </span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:ArrayCollection</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">data</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Object</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Vertical Layout</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">vertical</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Object</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Horizontal Layout</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">horizontal</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Object</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Flow Layout</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">flow</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Object</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">Circle Layout</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">circle</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:ArrayCollection&gt;</span>
    
    <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> list </span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;flux:List</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">list</span><span class="MXMLDefault_Text">&quot; left=&quot;</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">&quot; right=&quot;</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">&quot; top=&quot;</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">&quot; bottom=&quot;</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">&quot; 
        data=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">data</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; layout=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">list</span>.<span class="ActionScriptDefault_Text">selectedItems</span>.<span class="ActionScriptDefault_Text">getItemAt</span><span class="ActionScriptBracket/Brace">(</span>0<span class="ActionScriptBracket/Brace">)</span>.<span class="ActionScriptDefault_Text">layout</span> <span class="ActionScriptReserved">as</span> <span class="ActionScriptDefault_Text">ILayout</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; </span><span class="MXMLComponent_Tag">/&gt;</span>
    
<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
</html>
